package yunquan.wang.modules.base.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import yunquan.wang.base.dao.springdata.BaseRepository;
import yunquan.wang.modules.base.entity.Position;
/**
 * Position JPA DAO操作接口
 * @author 王云权  wangyunquan@gmail.com
 *  用生成器 生成于 2011-09-30 22:37
 *
 */
public interface PositionDao extends BaseRepository<Position,String>{

	@Query("select p from Position p where p.adminRank.name=?")
	public List<Position> findByAdminRank(String adminRankName);
	
}
